import request from '@/utils/request'

// 查询获奖查询列表
export function listSturewards(query) {
  return request({
    url: '/stuinfo/sturewards/list',
    method: 'get',
    params: query
  })
}

// 查询获奖查询详细
export function getSturewards(rewardId) {
  return request({
    url: '/stuinfo/sturewards/' + rewardId,
    method: 'get'
  })
}

// 新增获奖查询
export function addSturewards(data) {
  return request({
    url: '/stuinfo/sturewards',
    method: 'post',
    data: data
  })
}

// 修改获奖查询
export function updateSturewards(data) {
  return request({
    url: '/stuinfo/sturewards',
    method: 'put',
    data: data
  })
}

// 删除获奖查询
export function delSturewards(rewardId) {
  return request({
    url: '/stuinfo/sturewards/' + rewardId,
    method: 'delete'
  })
}
